package cn.maidouya.basic.mapper;

import cn.maidouya.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    /**添加*/
    void save(T t);
    /**删除*/
    void delete(Long id);
    /**修改*/
    void update(T t);
    /**查询一个*/
    T loadById(Long id);
    /**查询所有*/
    List<T> loadAll();
    /**分页和高级查询*/
    List<T> queryData(BaseQuery baseQuery);
    /**分页条数和查询总条数*/
    Integer queryCount(BaseQuery baseQuery);
}